Quantcast
Channel: THWACK: Popular Discussions - Network Configuration Manager
Viewing all 4266 articles
Browse latest View live

Looking for list of NCM variables

$
0
0

I'm looking for a complete list of built-in variables that I could use in NCM scripts or change templates.

Specifically, I'm trying to mass change the hostname and domain of Cisco devices based on the Node Name in Solarwinds database. We recently adopted a new naming convention, so we re-named the devices in NPM / NCM hoping to automate the process of renaming the devices itself.

I want to run a script that would look something like this:

conf t

hostname ${NodeName}

ip domain-name ${NodeDomain}

exit

wri mem

But I can't seem to find the correct variables to use. I saw a list of NCM global variables listed in the Admin Guide, but didn't find what I was looking for. I was thinking of parsing out the domain and hostname out of the Solarwinds Node name.

Any help would be appreciated.


NCM 7.5 - How to get Palo Alto Networks configs downloaded as XML

$
0
0

I was excited when I saw that 7.5 is going to support binary downloads. I'm hoping that will allow me to download configs from some PA-200 firewalls as XML, rather than the text (?) output that is currently getting pulled.

 

I opened a case a few months back with support and they basically said it can't be done currently (7.4.1). I'm hoping this can now happen?

 

I then tried to get SCP working to download manually, but there was a bug with SCP/TFTP server that was preventing this from happening (spent 2 hours on screenshare with support and we were unable to get the TFTP server to start and run properly.


So I'm hopeful in 7.5 that either I can download the configs natively, or TFTP server is now working properly or better yet, BOTH!

 

Any tips or tricks greatly appreciated.

 

Below on the left is what NCM pulls the file as. On the right is what a real config looks like ...

 

ncm-config-compare.jpg

Looking for list of NCM variables

$
0
0

I'm looking for a complete list of built-in variables that I could use in NCM scripts or change templates.

Specifically, I'm trying to mass change the hostname and domain of Cisco devices based on the Node Name in Solarwinds database. We recently adopted a new naming convention, so we re-named the devices in NPM / NCM hoping to automate the process of renaming the devices itself.

I want to run a script that would look something like this:

conf t

hostname ${NodeName}

ip domain-name ${NodeDomain}

exit

wri mem

But I can't seem to find the correct variables to use. I saw a list of NCM global variables listed in the Admin Guide, but didn't find what I was looking for. I was thinking of parsing out the domain and hostname out of the Solarwinds Node name.

Any help would be appreciated.

Config change template truncates commands (Juniper)

$
0
0

I have a config change template to generate MAC and ARP xml files on Juniper EX switches. Here's the pertinent snippet:

 

script GetARPandMACJuniper(

                                           NCM.Nodes @ContextNode,

                                           string @ARPfile,

                                           string @MACfile

                        )

{

  CLI

  {

     show arp | display xml | tee @ARPfile

     show ethernet-switching table | match ge- | display xml | tee @MACfile

     exit

  }

}

When I execute it on a switch it shows the commands as:

display xml | tee @ARPfile

show ethernet-switching table | match ge- | display xml | tee @MACfile

exit

If I flip the command order, whichever one is on top will be trunkated to the first pipe, but the one below will be fine. I tried adding a trivial command to the top as well and the first section preceeding a pipe gets truncated.

For instance:

{

     show ethernet-switching table | match ge- | display xml | tee @MACfile

     show arp | display xml | tee @ARPfile

     exit

  }

}

Becomes

     match ge- | display xml | tee @MACfile

     show arp | display xml | tee @ARPfile

     exit

And this:

{

     clear system commit    

     show ethernet-switching table | match ge- | display xml | tee @MACfile

     show arp | display xml | tee @ARPfile

     exit

  }

}

Becomes

     clear system commit    

     match ge- | display xml | tee @MACfile

     show arp | display xml | tee @ARPfile

     exit

 

Thinking it might be just a display glitch in the Orion console I run it and it only generates the second file and shows a transfer error in Orion.

 

I can "fix" it by adding a pipe at the beginning of the first line with pipes. This generates both files but still shows a transfer error.

The "fix"

  {

     | show arp | display xml | tee @ARPfile

     show ethernet-switching table | match ge- | display xml | tee @MACfile

     exit

  }

}

 

This is mildly infuriating. Any ideas why this might be happening?

 

Thanks.

3850 stack switch upgrade

$
0
0

I am trying to find a process to do a IOS update on several stacks of 3850 switches.   Has anyone run into this issue?

 

Thanks

Looking for list of NCM variables

$
0
0

I'm looking for a complete list of built-in variables that I could use in NCM scripts or change templates.

Specifically, I'm trying to mass change the hostname and domain of Cisco devices based on the Node Name in Solarwinds database. We recently adopted a new naming convention, so we re-named the devices in NPM / NCM hoping to automate the process of renaming the devices itself.

I want to run a script that would look something like this:

conf t

hostname ${NodeName}

ip domain-name ${NodeDomain}

exit

wri mem

But I can't seem to find the correct variables to use. I saw a list of NCM global variables listed in the Admin Guide, but didn't find what I was looking for. I was thinking of parsing out the domain and hostname out of the Solarwinds Node name.

Any help would be appreciated.

NCM 7.8 problems with Cisco SG-350-28P switches

$
0
0

I have NCM working fine with all manner of Cisco SF/SG switches, but I recently added two SG350-28P switches to the network and NCM cannot seem to back them up via SSH. Enabling session tracing indicates that the devices are timing out when logging in. I can successfully use SecureCRT from the Orion server to log into these devices. The issue seems related to SSH and is not a password or network connectivity problem. If I change the login method to use Telnet, it works fine, which leads me to believe the issue is not related to the NCM template, which was just copied from an existing working template and the system OID changed.

 

The following is a wireshark capture of the attempted SSH session by NCM. After TCP establishes, NCM never starts the key exchange and after about 45 seconds, it times out and restarts the connection, which it does two more times per the NCM settings.

 

Again, this only happens on this one model of SG350. I have an SG350-10MPP which works fine and as I said, a connection profile that uses telnet as the transfer protocol also works. Bug? Obscure setting I'm missing?

Multiple host Info in one report

$
0
0

hey!!

 

I am trying to get info from 400+ devices to be aggregated to one report.  For example, i want to run an activity that will send the command "show interface | inc 192.168.", to all of my routers and save device output to one file.  you know...so i don't have to go through 400+ reports to collate the data. 

 

 

The requirements are:

1.  i need the device name

2.  i need the interface info

 

I have tried the below, but all i find in the report is the last host...

! %getDeviceName - Start

sho ip int brie | inc 192.168.

! %getDeviceName - Finish

 

What i need is:

Router1 - Start

GigabitEthernet0/0   192.168.194.185 YES NVRAM  up                    up

Router1 - Finish

Router2 - Start

GigabitEthernet0/0   192.168.195.185 YES NVRAM  up                    up

Router2 - Finish

 

ANY help is appreciated!

 

thanks!


NCM Report - NCM Nodes not backed up

$
0
0

Hi guys,

 

I am trying to create an NCM report that lists information regarding backup status of NCM nodes. I don't seem to be having any luck in creating this.

Has anybody been able to create one such report without having to resort to using SQL queries?

 

What I'm trying to achieve specifically is having an overview of which nodes are and aren't in NCM, their login and backup status.

The report will let me known whether we have Nodes in our system that aren't added to NCM and or aren't being backup up.

It would look something like this:

 

 

Is NCM Node (Grouped by)NodeVendorIP AddressLogin StatusLogin TimestampLast Startup BackupLast Running Backup (Sort by)
Yes
sw-rtr01Cisco10.20.30.40Connection refused by 10.20.30.402/4/2015 2:01:57 AM6/5/2015 2:00:49 AM
swrtr02Cisco11.22.33.44Login OK5/13/20185/13/2018 2:00:51 AM5/13/2018 2:00:54 AM
No
srv-dev09Windows12.13.14.15

How to export Manage Nodes to CSV

$
0
0

Hi Everyone

 

I want to export my list of manage nodes to CSV.

I see Solarwinds only allows exporting to pdf but I want to manipulate my data on a spreadsheet for example.

 

Is there a way to export to csv?

 

Thanks.

 

- Andre

SQL Report: Which NPM Network devices are not in NCM, no configs backed up

$
0
0

I am doing some spring cleaning. I'm checking my network devices to verify that:

  1. All networked devices that are in NPM are also being managed by NCM;
  2. NCM is able to log into the devices;
  3. All devices have a recent config backed up.

I have found out that there are many ways that devices are no longer able to download configs, or otherwise are not in NCM. Some of the causes of lack of NCM ability to login, which I have found, are:

  • A NPS (RADIUS) server was retired, and network devices either not updated.
  • The network device and NPS don't have matching keys for the client.
  • A new device was put on the network without having full configuration completed.
  • Everything would work right if the person who added the device to Orion had selected Manage node with NCM: Yes.
  • The NCM connection profile was chosen, but not tested.

 

So, anyway, the easiest way to tell if all your devices are in NCM is to go to Manage Nodes, and Click the >> symbol at the far right of the column headings, and select "NCM-Licensed". Now, you can use the GUI to see which of the nodes exist, but are not licensed. Not licensed, means not in NCM, and the configs are not being backed up.

 

But sometimes you want a report. Sometimes you want to report to limit itself to Cisco, Palo Alto, and Riverbed (ignoring servers and UPS). Sometimes you don't want to see Cisco UCS or CCM as part of the report. It would be easy to create a report if there were a column for "NCM-Licensed", for the Nodes Table. I haven't been able to find any such column in the database (doesn't mean it is not there).

 

So, I recreated the relationship in a SQL query, to identify which NPM nodes are not also NCM nodes. This is the SQL query I developed for reporting nodes not in NCM.

 

PART 1: Which (Cisco) nodes are not in NCM

SELECT top 200   [n].[NodeID]  ,[c].[CoreNodeID]  ,[n].[IP_Address]  ,[n].[Caption]  ,[a].[DownloadTime]  ,[a].[ConfigType]
FROM [dbo].[Nodes][n] WITH(NOLOCK) 
LEFT JOIN [dbo].[NCM_Nodes][c] WITH(NOLOCK) ON [n].[NodeID]=[c].[CoreNodeID]
LEFT JOIN [dbo].[NCM_ConfigArchive][a] WITH(NOLOCK) ON [c].[NodeID]=[a].[NodeID]
WHERE [n].[Vendor]='Cisco'   AND NOT [n].[IOSImage] = 'CIMC'  AND NOT [n].[IOSImage] = 'Cisco IMC'  AND NOT [n].[MachineType] LIKE 'Cisco Unified%'  AND [c].[CoreNodeID]is NULL
ORDER BY [n].[Caption]

 

Here are the results of the report:

The key is the LEFT JOIN on line 9, pared with the [c].[CoreNodeID] in NULL on line 15. That's really all that's necessary here, the rest just shapes the data.

You can of course, change line 11 to represent a different Vendor, or multiple vendors by changing line 11 to be:

WHERE [n].[Vendor] in ('Cisco','Palo Alto Networks','Riverbed Technology') 

Lines 6, 7 and 10 are not useful for this report since they will always be Null since no config should exist if the node is not in NCM. However, the query can be modified easily to show recent configs (more on that later).

 

Now, it'd be nice to be able to see which of your devices in NCM have configs, and which don't I'm sure there is probably a way to find this out from the GUI. You could sort by "Last" in Configuration Management, and anything that has no icon there has no config. You can also see which devices are failing the nightly backup job in an e-mail. However, it is possible for you back up job to be missing some devices, so this report kind of double checks. But, it is really a matter of format of information. Sometimes you want a report, and sometimes you want to limit your scope of information to a certain group of devices. This is easy to do by running a report.

 

PART 2: Which NCM Nodes Do Not Have a Config archived:

SELECT top 200   [n].[NodeID]  ,[n].[Vendor]  ,[n].[IP_Address]  ,[n].[Caption]  ,[a].[DownloadTime]  ,[a].[ConfigType]
FROM [dbo].[Nodes][n] WITH(NOLOCK) 
LEFT JOIN [dbo].[NCM_Nodes][c] WITH(NOLOCK) ON [n].[NodeID]=[c].[CoreNodeID]
LEFT JOIN [dbo].[NCM_ConfigArchive][a] WITH(NOLOCK) ON [c].[NodeID]=[a].[NodeID]
WHERE [n].[Vendor] in ('Cisco','Palo Alto Networks', 'Riverbed Technology')   AND NOT [n].[IOSImage] = 'CIMC'  AND NOT [n].[IOSImage] = 'Cisco IMC'  AND NOT [n].[MachineType] LIKE 'Cisco Unified%'  AND NOT [c].[CoreNodeID]is NULL  AND [a].[ConfigType] is NULL
ORDER BY [n].[Vendor] DESC, [n].[Caption]

 

Results:

You can see that this is the same basic table, with a few changes. First, we changed line 15 to NOT**, which means it select only nodes that are in NCM. I added line 16, which will only choose lines which don't have a type of config. If there are configs archived for the node, each config will have a node type like Running or Start-up. Any device which has Null for Config type should have no configs. The value of this query is that it tells you which NCM nodes don't have any config archived.

 

Time to login to those devices and find out why those downloads are failing.

 

Of course, you could NOT line 16. If you did that, you could see all the configs archived for each node in NCM. Be warned, if you run the report in that manner, it will return every config for every node with a config. If you dn't have a decent Purge job configured, this will be a lot of results.

 

If people are interested, I'll post Part 3, which will show how to take that report and only show the last config for each device -- and then compare that to the a date. If you have a job to download all configs whether or not they have been changed -- once per month or such -- this report will identify nodes which the oldest config is older than that last all devices backup.

 

Happy Administering!

 

 

 

 

 

**The easier way to do this is to just use all nodes in NCM_Nodes. I just did it in the manner above because it is a derivation of the previous query. By 'NOT'ing line 15, you are saying "use all NPM nodes which are not absent from NCM_Node". It would be easier to say, "use NCM_Nodes". Simplify by editing line 9 and removing line 16 (less NOTs). Marginally faster this way too:

SELECT top 200   [n].[NodeID]  ,[n].[Vendor]  ,[n].[IP_Address]  ,[n].[Caption]  ,[a].[DownloadTime]  ,[a].[ConfigType]
FROM [dbo].[Nodes][n] WITH(NOLOCK) 
JOIN [dbo].[NCM_Nodes][c] WITH(NOLOCK) ON [n].[NodeID]=[c].[CoreNodeID]
LEFT JOIN [dbo].[NCM_ConfigArchive][a] WITH(NOLOCK) ON [c].[NodeID]=[a].[NodeID]
WHERE [n].[Vendor] in ('Cisco','Palo Alto Networks', 'Riverbed Technology')   AND NOT [n].[IOSImage] = 'CIMC'  AND NOT [n].[IOSImage] = 'Cisco IMC'  AND NOT [n].[MachineType] LIKE 'Cisco Unified%'  AND [a].[ConfigType] is NULL
ORDER BY [n].[Vendor] DESC, [n].[Caption]

REX EXPRESSION for VLAN range

$
0
0

How i can mention the VLAN range in REX ??? Below one is not working some one help me

 

^interface FastEthernet.*\n(.*\n)*.*switchport access vlan [128 -300].*\n(.*\n)*.*

Create custom variable for Cisco device and execute change using the custom variable

$
0
0

We have been unable to find the answer to this, and if it exists somewhere on the platform I apologize in advance.

 

We are trying to change hostnames on a group of Cisco devices by adding additional text to the end of the existing hostname.

 

In other tools I have been able to use a script to define a new variable, then create a template to define what portion of a running config to associate with the new variable, and then use that variable to make a change in the device. Is this possible in NCM and if so can someone provide an example or useful documentation?

Orion Interview Questions:

$
0
0

Hi,

 

Please find the few SolarWinds Platform Interview questions:

 

  1. What is the Orion?
  2. What is the difference between snmpv1, v2, and v3?
  3. What is the process to create the custom report?
  4. Can we do install Database and man polling engine on the same server?
  5. Can we do install an Additional web server and man polling engine on the same server?
  6. How to the syn database with Main polling engine or Additional Pollers or Additional Web Servers?
  7. What would be the Licence requirement for 500 instances monitoring?
  8. How many nodes can we monitor on SL 100/250/500/200/SLX?
  9. What is the Hardware requirement for above license?
  10. What is the diff btw MIB and OID?
  11. Explain all module purpose like NPM, SAM, DPA......!
  12. How add the database in DPA?
  13. What kind of database monitor in DPA?
  14. Whats the High availability of SolarWinds?
  15. What is the polling method?
  16. What is the difference between Agent polling and WMI Polling?

 

Apart from this Before inter please review details as below

 

winds Roles & Responsibilities

 

  • Plan new setup and provide requirements of OS/Hardware/Application license(Solarwinds)
  • Implement and Configure the Solarwinds Products

 

  • Solarwinds NPM
  • Solarwinds NCM
  • Solarwinds NTA
  • Solarwinds SAM
  • Solarwinds IPAM
  • Solarwinds DPA
  • Solarwinds Patch Manager
  • Solarwinds UDT
  • Solarwinds VNQM
  • Solarwinds Kiwi Syslog Server
  • Solarwinds SRM
  • Solarwinds WPM
  • Solarwinds Virtualization Manager

 

  • High Availability
  • Upgrading the Solarwinds application
  • Integrating the Solarwinds application
  • Performing initial node configuration
  • Manage Reporting & Alerts
  • Manage Dependency
  • Manage Custom Properties
  • Manage Universal Device Poller
  • Manage Views and Create Custom Dashboards
  • Schedule Reports
  • Manage NCM Compliance & Policies
  • Design Network Architecture through Network Atlas & Wireless Heat map
  • Familiar with OID and MIB
  • Knowledge on writing MS SQL Scripts
  • Knowledge on troubleshooting issues
  • Create Custom Reports
  • Integrate Solarwinds application with ITSM Tools

Create custom variable for Cisco device and execute change using the custom variable

$
0
0

We have been unable to find the answer to this, and if it exists somewhere on the platform I apologize in advance.

 

We are trying to change hostnames on a group of Cisco devices by adding additional text to the end of the existing hostname.

 

In other tools I have been able to use a script to define a new variable, then create a template to define what portion of a running config to associate with the new variable, and then use that variable to make a change in the device. Is this possible in NCM and if so can someone provide an example or useful documentation?


Help with custom report pulling serial numbers

$
0
0

I need help adding serial numbers to some custom reports that I have.  Most devices are Cisco but there other vendors as well.  As wluther pointed me in the right direction partially, I have been able to get "some results".  In it's current format, I have 222 nodes that I'd like to pull from that are Cisco devices, and the below only shows me 30 serial numbers. My guess is that different models may not show this information in the same manner.  Help would be greatly appreciated!

 

SELECT

n.Caption 

,n.NodeProperties.CiscoChassis.ChassisSerialNumberString 

FROM Orion.Nodes AS n 

3850 stack switch upgrade

$
0
0

I am trying to find a process to do a IOS update on several stacks of 3850 switches.   Has anyone run into this issue?

 

Thanks

NCM 7.5 - How to get Palo Alto Networks configs downloaded as XML

$
0
0

I was excited when I saw that 7.5 is going to support binary downloads. I'm hoping that will allow me to download configs from some PA-200 firewalls as XML, rather than the text (?) output that is currently getting pulled.

 

I opened a case a few months back with support and they basically said it can't be done currently (7.4.1). I'm hoping this can now happen?

 

I then tried to get SCP working to download manually, but there was a bug with SCP/TFTP server that was preventing this from happening (spent 2 hours on screenshare with support and we were unable to get the TFTP server to start and run properly.


So I'm hopeful in 7.5 that either I can download the configs natively, or TFTP server is now working properly or better yet, BOTH!

 

Any tips or tricks greatly appreciated.

 

Below on the left is what NCM pulls the file as. On the right is what a real config looks like ...

 

ncm-config-compare.jpg

Orion Interview Questions:

$
0
0

Hi,

 

Please find the few SolarWinds Platform Interview questions:

 

  1. What is the Orion?
  2. What is the difference between snmpv1, v2, and v3?
  3. What is the process to create the custom report?
  4. Can we do install Database and man polling engine on the same server?
  5. Can we do install an Additional web server and man polling engine on the same server?
  6. How to the syn database with Main polling engine or Additional Pollers or Additional Web Servers?
  7. What would be the Licence requirement for 500 instances monitoring?
  8. How many nodes can we monitor on SL 100/250/500/200/SLX?
  9. What is the Hardware requirement for above license?
  10. What is the diff btw MIB and OID?
  11. Explain all module purpose like NPM, SAM, DPA......!
  12. How add the database in DPA?
  13. What kind of database monitor in DPA?
  14. Whats the High availability of SolarWinds?
  15. What is the polling method?
  16. What is the difference between Agent polling and WMI Polling?

 

Apart from this Before inter please review details as below

 

winds Roles & Responsibilities

 

  • Plan new setup and provide requirements of OS/Hardware/Application license(Solarwinds)
  • Implement and Configure the Solarwinds Products

 

  • Solarwinds NPM
  • Solarwinds NCM
  • Solarwinds NTA
  • Solarwinds SAM
  • Solarwinds IPAM
  • Solarwinds DPA
  • Solarwinds Patch Manager
  • Solarwinds UDT
  • Solarwinds VNQM
  • Solarwinds Kiwi Syslog Server
  • Solarwinds SRM
  • Solarwinds WPM
  • Solarwinds Virtualization Manager

 

  • High Availability
  • Upgrading the Solarwinds application
  • Integrating the Solarwinds application
  • Performing initial node configuration
  • Manage Reporting & Alerts
  • Manage Dependency
  • Manage Custom Properties
  • Manage Universal Device Poller
  • Manage Views and Create Custom Dashboards
  • Schedule Reports
  • Manage NCM Compliance & Policies
  • Design Network Architecture through Network Atlas & Wireless Heat map
  • Familiar with OID and MIB
  • Knowledge on writing MS SQL Scripts
  • Knowledge on troubleshooting issues
  • Create Custom Reports
  • Integrate Solarwinds application with ITSM Tools

Nodes not showing up on Configuration Manager

$
0
0

I have added nodes in NPM and they are showing up fine. I can even view nodes in NCM Summary and view past versions of configurations. However when I go into Configuration Management to see the nodes and set baselines, it just shows a blank screen.

 

There's this link which seems to report an issue with ambiguous custom properties but I've checked the same log file and can't find anything similar:

 

Nodes missing from the NCM Configuration Management View - SolarWinds Worldwide, LLC. Help and Support

Viewing all 4266 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>