Reply

NetMRI Variables

Techie
Posts: 7
3386     0

Hello All,

I'm working on some rules, polices and groups to organice and check our network devices. I've notices that in different places variables are used; for example email notifications, rules, policies filter, groups... I was wondering if there is a list of the already used variables by netMRI or how can I know what else is there available to customize and build this things.

I'm basically working on email notifications, nested groups (not sure if this is possible), and some policies.

Any assistance or clarification will be much appreciated.

 

Regards,

Re: NetMRI Variables

Adviser
Posts: 470
3387     0

WIth in the NetMRI Help menu (Blue ? Mark)

 

 

Scripting Well-Known Variables (Perl and CCS)

$assurance = "99";

$community = "mysnmp";

$contextname = "";

$id = "21";

$ipaddress = "220.10.110.5";

$model = "871";

$name = "QAlabrtr11";

$syscontact = "QAEast's lab; Floor 2";

$sysdescr = "Cisco IOS Software, C870 Software (C870-ADVIPSERVICESK9-M), Version 12.3(8)YI2, RELEASE SOFTWARE (fc1) Synched to technology version 12.3(10.3)T2 Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2005 by Cisco Systems, Inc. Compil";

$syslocation = "QA lab right bottom soho router";

$sysname = "QAlabrtr11.qanet.com";

$type = "Router";

$vendor = "Cisco";

$version = "12.3(8)YI2";

Variables for Perl job support (Also available to CCS)

$api_url = "http://4.10.72.15";

$device_id = "21";

$http_password = "adminpass";

$http_username = "admin";

$job_id = "197";

$script_login = "true";

Variables for Templates

$NetMRI_ipaddress = "4.10.72.15";

Device Model Attributes

$device_datasourceid = "0";

$device_deviceaddlinfo = "";

$device_deviceassurance = "99";

$device_deviceccscollection = "on";

$device_devicechangedcols = "DeviceRunningConfigLastChange,DeviceSavedConfigLastChange";

$device_devicecommunity = "mysnmp";

$device_deviceconfiglastchecked = "2011-03-28 13:07:49";

$device_deviceconfiglocked = "0";

$device_deviceconfiglocklastchange = "";

$device_deviceconfiglocklastchangeby = "";

$device_deviceconfigpolling = "on";

$device_deviceconfigtimestamp = "2011-03-17 11:01:15";

$device_devicecontextname = "";

$device_devicednsname = "";

$device_deviceendtime = "";

$device_devicefingerprint = "off";

$device_devicefirstoccurrence = "2011-03-10 11:58:27";

$device_deviceid = "21";

$device_deviceipdotted = "220.10.110.5";

$device_deviceipnumeric = "3691671045";

$device_devicelicensed = "1";

$device_devicemac = "00:15:C6:53:AB:07";

$device_devicemanagedind = "true";

$device_devicemodel = "871";

$device_devicename = "QAlabrtr11";

$device_devicepolicyschedulemode = "change";

$device_deviceportscanning = "off";

$device_devicerank = "90";

$device_devicereboottime = "2010-07-20 11:14:39";

$device_devicerunningconfiglastchange = "";

$device_devicesaaversion = "2.2.0 Round Trip Time MIB";

$device_devicesavedconfiglastchange = "";

$device_devicesnmpanalysis = "on";

$device_devicesnmppolling = "on";

$device_devicestandardscompliance = "";

$device_devicestarttime = "2011-03-28 13:31:32";

$device_devicesyscontact = "QAEast's lab; Floor 2";

$device_devicesysdescr = "Cisco IOS Software, C870 Software (C870-ADVIPSERVICESK9-M), Version 12.3(8)YI2, RELEASE SOFTWARE (fc1) Synched to technology version 12.3(10.3)T2 Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2005 by Cisco Systems, Inc. Compil";

$device_devicesyslocation = "QA lab right bottom soho router";

$device_devicesysname = "QAlabrtr11.qanet.com";

$device_devicetimestamp = "2011-03-28 13:31:32";

$device_devicetype = "Router";

$device_devicevendor = "Cisco";

$device_devicevendordefaultcollection = "off";

$device_deviceversion = "12.3(8)YI2";

$device_networkdeviceind = "true";

$device_routingind = "true";

$device_switchingind = "false";

$device_virtualind = "false";

Job Specification Model Attributes

$job_specification_approved_by = "1";

$job_specification_approved_by_name = "admin";

$job_specification_approved_timestamp = "2011-03-28 13:35:18";

$job_specification_config_template_id = "";

$job_specification_created_at = "2011-03-28 13:35:19";

$job_specification_created_by = "admin";

$job_specification_description = "Run now job";

$job_specification_id = "181";

$job_specification_job_type = "script";

$job_specification_name = "Run Now [my script]";

$job_specification_schedule = "";

$job_specification_script_id = "64";

$job_specification_updated_at = "2011-03-28 13:35:19";

 

Follow me on LinkedIn: https://www.linkedin.com/in/sifbaksh
Twitter: https://twitter.com/sifbaksh

https://sifbaksh.com
Showing results for 
Search instead for 
Did you mean: 

Recommended for You