ProLiant Servers (ML,DL,SL)
1745821 Members
3968 Online
108722 Solutions
New Discussion

HP Scripting Tool Kit include File Error

 
SOLVED
Go to solution
gkrunal
Frequent Advisor

HP Scripting Tool Kit include File Error

Hello

I'm trying to setup DL360 Gen9 server with HP Scripting Toolkit 10.40

PXE Boot getting Below Error when i tried to PXE Boot capture.sh 

Any idea ?

 PXE_STK_ERROR.PNG

 Thanks

 

13 REPLIES 13
gkrunal
Frequent Advisor

Re: HP Scripting Tool Kit include File Error

Looks like it's not mouting to NFS shares which ideally the next steps

I saw NFS share mount issued was fixed for 10.40 but not sure.

Fixes for 10.40

"Fixed issue with mounting NFS shares"

Jimmy Vance
HPE Pro

Re: HP Scripting Tool Kit include File Error

I think I just reoplied in a different thread.  You need 'network=1' as a boot option

No support by private messages. Please ask the forum! 
gkrunal
Frequent Advisor

Re: HP Scripting Tool Kit include File Error

Yes 

root=/dev/ram0 rw ramdisk_size=396452 network=1 sstk_mount=10.1.11.200:/data/hp/hpe-scripting-toolkit-linux-10.40.37 sstk_mount_type=nfs sstk_mount_options=rw,nolock sstk_script=/shell.sh'

Jimmy Vance
HPE Pro

Re: HP Scripting Tool Kit include File Error

So is it working now, or are you still having issues?

No support by private messages. Please ask the forum! 
gkrunal
Frequent Advisor

Re: HP Scripting Tool Kit include File Error

Still having the same issue include file not found
Jimmy Vance
HPE Pro
Solution

Re: HP Scripting Tool Kit include File Error

Generally when I get the include file not found message it has something to do with the network or boot syntax.  Since the toolkit now supports pulling the image across using HTTP, I pretty much have abandoned NFS.  Originally trying to keep the boot image small for slow networks, you needed an NFS mount to pull the utility tools into the ram drive.  For some time now, all the tools are included in the initrd image so there is no need to really have an NFS mount any longer.  To add additional scripts into the tarball, I normally just untar the package, add in my custom scripts and files, and then tar everything back up.   Here are two of my working boot lines for HTTP and NFS.  This is from PXE booting and using ELILO as the boot loader, so you will need to make the proper edits for using pxelinux.0 or Grub2

image=/toolkit10.40-37/vmlinuz
    label=toolkit10.40
    description = "HP Scripting Toolkit 10.40-37"
    initrd=/toolkit10.40-37/initrd.img
    append="root=/dev/ram0 rw ramdisk_size=785612 quiet=1 network=1 media=net numa=off sstk_conf=toolkit.conf sstk_script=/shell.sh sstk_tgz=http://x.x.x.x/stk/hpe-scripting-toolkit-linux-10.40-37.tar.gz"

 

image=/toolkit10.40-37/vmlinuz
    label=toolkit10.40nfs
    description = "HP Scripting Toolkit 10.40-37 NFS"
    initrd=/toolkit10.40-37/initrd.img
    append="root=/dev/ram0 rw ramdisk_size=785612 quiet=1 network=1 media=net numa=off sstk_conf=toolkit.conf sstk_script=/shell.sh iso1=nfs://x.x.x.x/data/stk/hpe-scripting-toolkit-linux-10.40.iso"

 

 

No support by private messages. Please ask the forum! 
gkrunal
Frequent Advisor

Re: HP Scripting Tool Kit include File Error

Thanks Jimmy

http/tar.gz works and nfs/iso didn't work for me but still having an issue for NFS mount.

I'm also trying to capture hardware info and sending output to NFS mount.

how do you usually define sstk_mount option for capturing hardware info ?

sstk_mount does support http ?? 

 

Jimmy Vance
HPE Pro

Re: HP Scripting Tool Kit include File Error

Unfortunately if you need to gather info and save it, you will need to do an NFS mount.  You may just need to add an NFS mount back to a writable area from within your script.  If I get some time this week I will look at mounting NFS the old way (instead of using NFS to mount an ISO) to verify it still works

No support by private messages. Please ask the forum! 
gkrunal
Frequent Advisor

Re: HP Scripting Tool Kit include File Error

Thanks..!!

really something is broken with NFS shares

I tried to define sstk_mount via NFS doesn't work and NFS ISO mount doesn't work getting same include file not found issue.

local usb mount options work but I don't want to capture info to USB.

As per document NFS or /dev/xxx only two options avaiable for sstk_mount.

also found out below from 10.40 file, looks like sstk_mount nfs has DEPRECATED now ??

#
# New media parameter
# media=net -- toolkit media is mounted over the network
# media=cdrom -- toolkit media is accessible via CD/DVD ROM drive (including iLO virtual media)
# media=usb -- toolkit media is accessible via a USB key
#
#
label toolkit
kernel vmlinuz
append initrd=initrd.img root=/dev/ram0 rw ramdisk_size=769344 ide=nodma ide=noraid pnpbios=off numa=off media=net iso1=nfs://10.0.0.1/BOOTSTRAP sstk_conf=toolkit.conf sstk_script=/shell.sh hostname=customprefix-


#
# DEPRECATED SYNTAX
#
# For Networking, add "network=1" to the append line in the toolkit section.
#
# For USB CDs, change the ssstk_mount option to "/dev/sda"
# For iLO Virtual CD\DVDs, change the ssstk_mount option to "/dev/hpilo-cdrom".
#
label toolkit_deprecated
kernel vmlinuz
append initrd=initrd.img root=/dev/ram0 rw ramdisk_size=769344 ide=nodma ide=noraid pnpbios=off network=1 sstk_mount=10.0.0.1:/BOOTSTRAP sstk_mount_type=nfs sstk_mount_options=ro,nolock numa=off sstk_conf=toolkit.conf sstk_script=/shell.sh

label bash
kernel vmlinuz
append initrd=initrd.img root=/dev/ram0 rw ramdisk_size=769344 single console=ttyS0,115200n8 console=tty0 ide=nodma ide=noraid pnpbios=off numa=off

label local
localboot 0