Hello Stephen, list,

when looking at the CA-provided Cisco NXOS upload script, it starts with a 
section like this (09.02.03.H11):

<snip>
  ### Main ###
  if( $#ARGV != 5 && $#ARGV != 6 )
  {
      print "Usage: upload_running.pl <device IP> <contentFile> <user> <pass>
  <enable_pass> <login_timeout_in_seconds> <upload_timeout_in_seconds>\n";
      print STDERR "Usage: upload_running.pl <deviceIP> <contentFile> <user>
  <pass> <enable_pass> <login_timeout_in_seconds> 
<upload_timeout_in_seconds>\n";
      exit 255;
  }
</snip>

Within the "Additional Script Paratemeters" view, there are two parameters 
defined:

SSH Login Timeout : 5 : do not prompt
SSH Cmd Timeout : 5 : do not prompt

Combining the information above, you'll get all the script parameters needed.
To be able to run a meaningful debug, we often start developing the scripts 
standalone (means besides Spectrum) basically running them from CLI. This 
allows us for something like your line-by-line approach.
Once they work, we import them into NCM device families.

Regarding all the various vendors, there are two strategies:
1) create a script framework being very flexible in handling different prompts 
and command sets to use it in many/all device families
2) create multiple minimalistic scripts each to support a single vendor/device 
type only

Mit freundlichen Gruessen - Yours sincerely

Raphael Franck
Consultant
Managed Services Factory

Computacenter AG & Co oHG
Services & Solutions

Europaring 34-40, 50170 Kerpen, Germany
E-Mail: [email protected]
WWW: www.computacenter.de

Von: Schroeder, Stephen G CIV USARMY 7 SIG CMD (US) 
[mailto:[email protected]] 
Gesendet: Dienstag, 5. November 2013 15:45
An: spectrum
Betreff: [spectrum] NCM Help. (UNCLASSIFIED)

Classification: UNCLASSIFIED
Caveats: NONE
Good Morning,

I am trying to explore the options within NCM and I am getting stuck with the 
PERL/Upload firmware portion. 

Currently all the devices are in the Cisco IOS-SSH family and the capturing and 
uploading of the Config files has been running smooth. When I initially upload 
the firmware it is disallowed with the error of "Operation is not available. If 
the device supports this operations, a script must be configured".

Next, Device family --> Information --> Device Firmware Transfer Settings --> 
Load Device Firmware Script and load "Cisco NX OS Upload_Script" (Does not 
exactly match my C3745-AdventerpriseK9-M, Version 12.4(12) but I do not have 
really any other choice). I go to upload firmware task again and this time it 
is allowed. Click on continue, Save and then Upload Firmware. Receive an error: 
"Load Firmware Script Return Error [255]: usage error"

This is where I get stuck. 
I suspect that I need to add something to the Additional Script Parameters but 
I am not sure what to add there and I have no idea how the PERL script works or 
how to debug it if there is an error. I am used to be able to break scripts or 
do a line by line step through to find out what is happening.

On top of all this, I have multiple vendors in the network environment and I 
need scripts to get these other devices working (Junipers, Brocades, Avaya, 
Estasys, etc.) The documentation for NCM is good in certain areas, then it just 
drops off into an abyss.

I greatly appreciate any and all help in this.

Thanks
Stephen


Classification: UNCLASSIFIED
Caveats: NONE
* --To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected] 


-----------------------------------
Computacenter AG & Co. oHG, mit Sitz in Kerpen (Amtsgericht Köln HRA 18096)
Vertretungsberechtigte Gesellschafter:
Computacenter Aktiengesellschaft, mit Sitz in Köln (Amtsgericht Köln HRB 28384)
Vorstand: Tony Conophy
Aufsichtsrat: Michael Norris (Vorsitzender)
Computacenter Management GmbH, mit Sitz in Köln (Amtsgericht Köln HRB 28284)
Geschäftsführer: Dr. Karsten Freihube, Dr. Christine Haupt, Reiner Louis, 
Thomas Jescheck, Nils Scheller
Visit us on the Internet: http://www.computacenter.de
Visit our Online-Shop: https://shop.computacenter.de

This email is confidential. If you are not the intended recipient, you must not 
disclose or use the information contained in it. If you have received this mail 
in error, please tell us immediately by return email and delete the document.
-----------------------------------


---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

Reply via email to