11-02-2018
Hi Gull04,
Being offline is fine... I will e going to site now anyway then not back until monday.
I copied the file from windows to Linux, but then I created a new one in vi on linux server.
I will create your expect file and test that on Monday.
thanks for your help.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all,
It's been a few years since I touched 'expect' and just got it on my system.
In the past, I could simply do the following:
(this is just a simple example)
$ expect
$ ls -l
$ pwd
$ exit
...then a default script name would be placed in my working directory. At this point I... (2 Replies)
Discussion started by: scriptosaurus
2 Replies
2. Shell Programming and Scripting
I need to run a remote application(GUI) in a client.i.e on running a script in the client machine i should get the GUI application which is running in the server by providing password through the script.Will expect or autoexpect command suit for this scenario?
could anyone help me by posting some... (0 Replies)
Discussion started by: arun_v
0 Replies
3. Shell Programming and Scripting
Hello to all...this is my first post (so please go easy). :)
I feel pretty solid at expect scripting, but I'm running into an issue that I'm not able to wrap my head around. I wrote a script that is a little advanced for logging into a remote Linux machine and changing text in a file using sed.... (2 Replies)
Discussion started by: v1k0d3n
2 Replies
4. Shell Programming and Scripting
This Expect script provides expect with a list of IP addresses to Cisco IPS sensors and commands to configure Cisco IPS sensors. The user, password, IP addresses, prompt regex, etc. have been anonymized. In general this script will log into the sensors and send commands successfully but there are... (1 Reply)
Discussion started by: genewolfe
1 Replies
5. Shell Programming and Scripting
Hello All,
I am trying to automate an installation process using expect and sh script. My problem is that during the installation process the expected value can change according to the situation.
For Example if this is a first time installation then at step 3 I'll get "Do you want to accept... (0 Replies)
Discussion started by: alokrm
0 Replies
6. Programming
Hi,
Am very new to expect scripting..
Can You please suggest me how to call an expect script inside another expect script..
I tried with
spawn /usr/bin/ksh
send "expect main.exp\r"
expect $root_prompt
and
spawn /usr/bin/ksh
send "main.exp\r"
expect $root_prompt
Both... (1 Reply)
Discussion started by: Priya Amaresh
1 Replies
7. Shell Programming and Scripting
I have a simple Expect script to power a system on and off in an endless loop looking for an ERROR message at which point the script should exit. But I need to skip the first 60 seconds after each power on or off and not exit if there are ERROR messages during that time. I thought I could use... (0 Replies)
Discussion started by: David_Gilhooly
0 Replies
8. Shell Programming and Scripting
the following code works sometimes. other times, it behaves mysteriously. when the script sshs to a box, it is suppose to automatically begin running the command it is told to run. but in this case, after this script logs into a host, it just sits there at the prompt and does not run the... (1 Reply)
Discussion started by: SkySmart
1 Replies
9. Programming
I'm fairly new to scripting so this might not be possible.
I am using Expect with Cisco switches and need to capture the string after finding the expect request. For example, when I issue "show version" on a Nexus switch, I'm looking to capture the current firmware version:
#show version
... (0 Replies)
Discussion started by: IBGaryA
0 Replies
LEARN ABOUT CENTOS
vfs_tsmsm
VFS_TSMSM(8) System Administration tools VFS_TSMSM(8)
NAME
vfs_tsmsm - VFS module for handling offline files with Tivoli Storage Manager Space Management
SYNOPSIS
vfs objects = tsmsm
DESCRIPTION
This VFS module is part of the samba(7) suite.
The tsmsm VFS module is an extension for handling offline files with Tivoli Storage Manager Space Management.
It tries to avoid calling expensive DMAPI calls with some heuristics based on the fact that number of blocks reported of a file multiplied
by 512 will be bigger than 'online ratio' of actual size for online (non-migrated) files. If heuristic check fails, the module calls DMAPI
and asks for a specific attribute which is present for offline (migrated) files. If this attribute presents, the file is considered
offline.
This module is not stackable.
OPTIONS
tsmsm:hsm script = [ path to hsm script ]
hsm script should point to a shell script which accepts two arguments: operation and filepath. the tsmsm module only uses "offline" for
operation to set the file under filepath offline.
tsmsm:online ratio = [ number ]
Ratio to check reported size against actual file size. The default value is 0.5.
tsmsm:dmapi attribute = [ attribute-name ]
Name of a DMAPI attribute that is present when a file is offline. The default is "IBMobj" (which is what GPFS uses).
tsmsm:dmapi value = [ value for the DMAPI attribute ]
Value that the DMAPI attribute should have for the file to be considered offline. The default is empty (no value required).
EXAMPLES
A GPFS mount with TSM support can be exported via Samba as follows:
[gpfs_tsm_share]
vfs objects = tsmsm gpfs
path = /test/gpfs_mount
VERSION
This man page is correct for version 4.0 of the Samba suite.
AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open
Source project similar to the way the Linux kernel is developed.
Samba 4.0 06/17/2014 VFS_TSMSM(8)