Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sipp cannot find infindex by path #395

Closed
sergey-safarov opened this issue May 21, 2019 · 1 comment
Closed

sipp cannot find infindex by path #395

sergey-safarov opened this issue May 21, 2019 · 1 comment
Milestone

Comments

@sergey-safarov
Copy link

I cannot start sipp with -infindex options and absolute path

[root@localhost sipp]# cd /etc/sipp/
[root@localhost sipp]# sipp -inf data.csv -infindex /etc/sipp/data.csv 0 -i 127.0.0.1 127.0.0.1
2019-05-21	06:23:52.795210	1558419832.795210: Could not find file for -infindex: /etc/sipp/data.csv.

But csv file exist

[root@localhost sipp]# cat /etc/sipp/data.csv
RANDOM
3444333;45678*#;100000;10000
222222;456;8000;10000
333;678;60000;10000

Also failed command with relative path

[root@localhost sipp]# sipp -inf data.csv -infindex ../sipp/data.csv 0 -i 127.0.0.1 127.0.0.1
2019-05-21	06:25:38.682625	1558419938.682625: Could not find file for -infindex: ../sipp/data.csv.

Same command with filename only is correct.

[root@Nieblestim_RS02 sipp]# sipp -inf data.csv -infindex data.csv 0 -i 127.0.0.1 127.0.0.1
@wdoekes wdoekes added this to the to-check milestone May 21, 2019
@wdoekes
Copy link
Member

wdoekes commented May 21, 2019

This is a documentation issue I guess.

Only basename of the supplied files are stored and -infindex references that, so the following does work:

sipp -inf ../sipp/data.csv -infindex data.csv 0

This was done intentionally in 3672ad8:

commit 3672ad87e3360d91e2e8dc4022ddd78a62fdeae9
Author: Charles P. Wright <[email protected]>
Date:   Fri Jul 11 18:39:07 2008 +0000

    Fix: Don't require full path name for file= in field parameter.
    
    git-svn-id: svn://svn.code.sf.net/p/sipp/code/sipp/trunk@499 60913f6b-29f6-41b8-8391-1ad2d2d6c344

So, I'm reluctant to undo that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants