Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - jds

Pages: [1]
1
General Support / Cisco MIBs
« on: November 17, 2020, 09:22:58 pm »
Does anyone know how to fix MIBs that throw an error like "Import Symbol "xyz" unresolved"? I'm trying to import MIBs for our firewalls and 4 of the files throw this error. I've tried fixing them myself but nothing I do seems to work. If I remove them, the rest of the files will import fine. I have attached the MIBs

CISCO-FIREPOWER-AP-EQUIPMENT-MIB: ERROR 001: Import symbol "CfprApEquipmentPsuOperability" unresolved
CISCO-FIREPOWER-AP-PROCESSOR-MIB: ERROR 001: Import symbol "CfprApProcessorUnitId" unresolved

2
General Support / NXShell - Create Node and Interfaces
« on: November 09, 2020, 08:37:21 pm »
Howdy,

I have been using Nxshell to create switches that we don't manage and it is creating the switch nodes great. When I try to get it to create the interfaces on the switch, it will create them but it's not setting the flags or the description for each node. It won't set the flags as all and the description is set to the name of the interface even though I use setDescription command. Does anyone know why the following script won't set the flags or description? Other than those, it has been working great.

Code: [Select]
for i in xrange(0, 48):
    name = "Gi1/0/%d" % (i + 1, )
    cd = NXCObjectCreationData(objects.GenericObject.OBJECT_INTERFACE, name, <parentnodeID>);
    cd.setCreationFlags(flags);
    cd.setDescription("GigabitEthernet1/0/%d");
    cd.setPhysicalPort(True);
    cd.setIfType(6);
    nodeId = session.createObject(cd);
    print '"%s" created, id=%d' % (name, nodeId)

Thank you,
Josh

3
General Support / VMWare SNMP not mapping topology via CDP
« on: October 28, 2020, 12:13:53 am »
Howdy,

We have a VMWare server that is not being mapped via CDP on our Cisco C9300 switch. I have confirmed that the the switch can see the server with "sh cdp neighbor" but the Netxms Server is not making the connection. The VMWare server is SNMP active on v2c and the interfaces are populated. My current thought is because the server is connected via a Port-Channel in the switch, the MAC addresses for the physical ports are associated with the port channel and not the interface the cable is plugged into. Is there something I am missing that would help make the connection without the MAC address being in the MAC address table?

4
General Support / Add peer manually to interface
« on: October 27, 2020, 03:51:22 pm »
Good morning!

We are loving Netxms and what all it can do. We are slow integrating it with a lot of our systems. One question that has come up is, how do we manual specify a peer for an interface? We are an University Department, we do not control the switches that most our user devices are plugged into. What switches we do control we have managed to get the peer interfaces populated. We can physically get to the switch that the devices are plugged into, so we know what ports they are in but we would like to reflect that in Netxms if possible. Does anyone know how I can do this?

Thank you in advance,
Josh

5
General Support / Data Collection Table and regex
« on: August 22, 2020, 12:40:59 am »
Howdy,

We were trying to get an agent to monitor SSL certificate expiration dates. We were able to achieve this with the ExternalParameterShellExec command, regex and some other commands to calculate the remaining seconds before expiration. My manager wanted me to create a table with all our SSL websites and the remaining time for each. I tried several ways to use regex to validate the string before the calculations but it seems that the transformation script on the Data Collection table doesn't support regex at all. Below are the two ways I tried to get regex to work, I use the "match" version in the ExternalParameterShellExec command and it's working flawless. If there is any regex in the transformation script, the collection errors out.

Code: [Select]
idate = $1->getColumnIndex("Date");
ireman = $1->getColumnIndex("Remaining");
for (i=0; i<$1->rowCount; i++)
{
   value = $1->get(i,idate);
   if (value match "^([A-Za-z]+)\s+([0-9]+)\s+([0-9]+):([0-9]+):([0-9]+)\s+([0-9]+)")
  {
     //alot of conversion and math is omitted
     $1->set(i,ireman,value);
  }
}

Code: [Select]
idate = $1->getColumnIndex("Date");
ireman = $1->getColumnIndex("Remaining");
for (i=0; i<$1->rowCount; i++)
{
   value = $1->get(i,idate);
   if (value ~= "^([A-Za-z]+)\s+([0-9]+)\s+([0-9]+):([0-9]+):([0-9]+)\s+([0-9]+)")
  {
     //alot of conversion and math is omitted
     $1->set(i,ireman,value);
  }
}

I've also tried to just inject a value myself instead of pulling from the table and it still gives an Error on updating the table

Code: [Select]
idate = $1->getColumnIndex("Date");
ireman = $1->getColumnIndex("Remaining");
for (i=0; i<$1->rowCount; i++)
{
        value = 1;
if (value ~= "([0-9])") //tried both match and ~= for the regex
{
$1->set(i,ireman,1);
}
}

I can't seem to find the answer on the forum of in any documentation that I can find. Any help would be appreciated.

Thank you,
Josh

6
General Support / SQL Query Fails adding users to Admin Group
« on: August 15, 2020, 01:48:15 am »
Howdy,

We are trying to install version 3.4.310 on Windows Server 2019 with postgres (we have also tried MS SQL). We get the install to work correctly and the database up and running quickly. When we add any users (local or LDAP) to the built-in Admin group, we get the following errors in the log files:

2020.08.14 17:34:43.135 *E* [db.drv             ] SQL query failed (Query = "SELECT id FROM user_groups WHERE id=?"): 22003 ERROR:  value "2147483649" is out of range for type integer
2020.08.14 17:34:43.150 *E* [db.drv             ] SQL query failed (Query = "INSERT INTO user_groups (name,system_access,flags,description,guid,ldap_dn,ldap_unique_id,created,id) VALUES (?,?,?,?,?,?,?,?,?)"): 23505 ERROR:  duplicate key value violates unique constraint "user_groups_pkey"
DETAIL:  Key (id)=(-2147483647) already exists.

No matter how we add the users (either through the user panel or the group panel itself). We have also created a group and added users, which gave the same error. Any help would be appreciated.

Thank you in advance.

Pages: [1]